package wsi.gui.function;

import org.rygh.core.db.tuple.NamedModel;

public class FunctionMetaTuple extends NamedModel {
	enum Columns {
		BOOL_VALUE;
	}

	public FunctionMetaTuple(int id, String name, String notes) {
		super(id, name);
		setNotes(notes);

		if (notes != null && (notes.equals("true") || notes.equals("false")))
			setBoolValue(Boolean.parseBoolean(notes));
	}

	public Boolean getBoolValue() {
		return (Boolean) get(Columns.BOOL_VALUE);
	}

	public void setBoolValue(boolean b) {
		set(Columns.BOOL_VALUE, b);
		setNotes(Boolean.toString(b));
	}
}
